package my.bc.webdav.model;

public class XmlFormatter
{
  private int depth = 0;
  private String indentation = "  ";
  private StringBuilder indented = new StringBuilder();
  private String tagSeperator = "\n";
  
  public int increaseDepth()
  {
    indented.append( indentation );
    return ++depth;
  }
  public int decreaseDepth()
  {
    indented.delete( indented.length()-indentation.length(), indented.length() );
    return --depth;
  }
  
  public String getIndented()
  {
    return indented.toString();
  }
  
  public String getTagSeperator()
  {
    return tagSeperator;
  }
}
